package com.www.applyword.ui.chat;

import android.content.Intent;
import android.widget.EditText;

import com.www.applyword.R;
import com.www.applyword.base.BaseActivity;
import com.www.applyword.utils.Utils;

import butterknife.BindView;

/**
 * author : huang
 * date   : 2019/11/16 0016 13:45
 * version: 1.0
 */
public class AddMoreActivity extends BaseActivity {
    @BindView(R.id.user_id)
    EditText mUserID;
    @BindView(R.id.user_code)
    EditText user_code;

    @Override
    protected void loadViewLayout() {
        setContentView(R.layout.contact_add_activity);
        setTitle("添加好友");
        setRringTitle("确定");
        tv_right.setOnClickListener(v -> {
            String id = mUserID.getText().toString().trim();
            if (!Utils.isPhoneNumber(id)){
                Utils.showToastSafe("请输入正确的手机号码");
                return;
            }

           /* if (TextUtils.isEmpty(id)) {
                Utils.showToastSafe("请输入对方ID(电话号码)");
                return;
            }*/

            Intent intent = new Intent(AddMoreActivity.this, FriendProfileMoreActivity.class);
            intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            intent.putExtra("id",id);
            startActivity(intent);

        });
    }

    @Override
    protected void loadData() {

    }
}
